import { RouteRecordRaw, RouterView } from 'vue-router'

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    component: RouterView,
    redirect: '/login',
    children: [
      {
        path: '/login',
        component: () => import('@/views/login/login/index.vue')
      },
      {
        path: '/register',
        component: () => import('@/views/login/register/index.vue')
      },
      {
        path: '/find-password',
        component: () => import('@/views/login/find-password/index.vue')
      },
      {
        path: '/bind-tel',
        component: () => import('@/views/login/bind-tel/index.vue')
      },
      {
        path: '/success',
        component: () => import('@/views/login/success/index.vue')
      },
      {
        path: '/login-mid-page',
        component: () => import('@/views/login/login-mid-page/index.vue')
      },
      {
        path: '/login-wechat',
        component: () => import('@/views/login/login-wechat/index.vue')
      }
    ]
  }
]

export default routes
